<?php
require(dirname(__FILE__)."/includes/init.php");
if(isset($_SESSION['user_name'])){
$result = showAllUnsub();
?>
<title>未处理的退订</title>
<table width="800" border="0" bgcolor="#0066FF" style="font-size:12px">
  <tr bgcolor="#FFFFFF">
    <td>ID</td>
    <td>email</td>
    <td>分组</td>
    <td>emailId</td>
    <td>timeStamps</td>
    <td>userIp</td>
    <td>flag</td>
  </tr>
<?php
foreach($result as $key=>$value){
?>
  <tr bgcolor="#FFFFFF">
    <td><?php echo $value['id']?></td>
    <td><?php echo $value['email']?></td>
    <td><?php echo $value['type']?></td>
    <td><?php echo $value['emailId']?></td>
    <td><?php echo date("Y-m-d H:i:s",$value['timeStamps']);?></td>
    <td><?php echo $value['userIp']?></td>
    <td><?php if($value['flag']==0){echo "not";}?></td>
  </tr>
<?php 
}
?>  
  <tr bgcolor="#FFFFFF">
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td>&nbsp;</td>
    <td colspan="5"><?php include("includes/symbolic.htm");?></td>
    <td>&nbsp;</td>
  </tr>
</table>
<?php
}else{
 echo "hello";
}
?>